<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://sourceforge.net/projects/jsf-comp" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Bar.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <f:view>
	<h:form>
		<div id="bar">
		<c:chart id="chart1" datasource="#{bar.pieDataSet}" type="pie" is3d="true" antialias="true" title="Pie Chart Demo" xlabel="X Label" ylabel="Y Label" height="300" width="400"></c:chart>  
		<c:chart datasource="#{bar.XYDataset}" type="timeseries" title="XY Chart Demo" xlabel="X Label" ylabel="Y Label" height="300" width="400"></c:chart><br>
		<c:chart datasource="#{bar.categoryDataset}" type="bar" title="XY Chart Demo" xlabel="X Label" ylabel="Y Label" height="300" width="400"></c:chart><br>
		<c:chart datasource="#{bar.barDataset}" type="bar" is3d="false" title="XY Chart Demo" xlabel="Student" ylabel="Max. marks" height="300" width="400"></c:chart><br>		
	</div></h:form></f:view>  
  </body>
</html>
